<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="stylesheet.css" rel="stylesheet"/>
    <link rel="icon" href="/favicon.ico">
    <title>MCSocial</title>
    <script src="authFunctions.js"></script>
</head>
<body>
    <!-- Navigation -->
    <nav class="navbar">
        <a href="index.html" class="logo">🎮 MCSocial</a>
        <ul id="navlinks" class="nav-links">
            <li><a href="index.html">Home</a></li>
            <li><a href="createPost.html">Create</a></li>
        </ul>
    </nav>

    <script src="globals.js">
    </script>

    <div class="main-content">
        <!-- Register Page -->
        <div id="register" class="page">
            <h1>📝 Create Account</h1>
            <form>
                <div class="form-group">
                    <label for="registerUsername">Username</label>
                    <input type="text" id="registerUsername" required>
                </div>
                <div class="form-group">
                    <label for="registerPassword">Password</label>
                    <input type="password" id="registerPassword" required>
                </div>
                <div class="form-group">
                    <label for="registerConfirmPassword">Confirm Password</label>
                    <input type="password" id="registerConfirmPassword" required>
                </div>
                <p id="errorMessage" style="margin-top: 1rem; text-align: center; color: red"></p>
                <button type="button" class="btn" onclick="register()">Create Account</button>
                <p style="margin-top: 1rem; text-align: center;">
                    Already have an account? <a href="login.html" style="color: #4CAF50;">Login here</a>
                </p>
            </form>
        </div>
    </div>
</body>
</html>
